/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_proc_record_his.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PROC_RECORD_HIS
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_proc_record_his.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_PROC_RECORD_HIS::CTable_PPM_PROC_RECORD_HIS( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PROC_RECORD_HIS" );
  prepareTable();
  prepareQuery();
 
  TAR_TEAM.setField( "TAR_TEAM", DATA_CHAR, 20, 0 );
  makeTableItem( TAR_TEAM );
  SRC_STAFF.setField( "SRC_STAFF", DATA_CHAR, 20, 0 );
  makeTableItem( SRC_STAFF );
  SRC_TEAM.setField( "SRC_TEAM", DATA_CHAR, 20, 0 );
  makeTableItem( SRC_TEAM );
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID );
  ID.setField( "ID", DATA_CHAR, 20, 0 );
  makeTableItem( ID );
  OBJ_ID.setField( "OBJ_ID", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_ID );
  OBJ_TYPE.setField( "OBJ_TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( OBJ_TYPE );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  EXECUTOR.setField( "EXECUTOR", DATA_CHAR, 20, 0 );
  makeTableItem( EXECUTOR );
  EXECUTOR_TYPE.setField( "EXECUTOR_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( EXECUTOR_TYPE );
  PROC_RESULT.setField( "PROC_RESULT", DATA_CHAR, 256, 0 );
  makeTableItem( PROC_RESULT );
  DESCRIPTION.setField( "DESCRIPTION", DATA_CHAR, 1024, 0 );
  makeTableItem( DESCRIPTION );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
}


CTable_PPM_PROC_RECORD_HIS::CTable_PPM_PROC_RECORD_HIS( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PROC_RECORD_HIS" );
  prepareTable();
  prepareQuery();
 
  TAR_TEAM.setField( "TAR_TEAM", DATA_CHAR, 20, 0 );
  makeTableItem( TAR_TEAM );
  SRC_STAFF.setField( "SRC_STAFF", DATA_CHAR, 20, 0 );
  makeTableItem( SRC_STAFF );
  SRC_TEAM.setField( "SRC_TEAM", DATA_CHAR, 20, 0 );
  makeTableItem( SRC_TEAM );
  HIS_ID.setField( "HIS_ID", DATA_CHAR, 20, 1 );
  makeTableItem( HIS_ID );
  makeKeyItem( HIS_ID );
  ID.setField( "ID", DATA_CHAR, 20, 0 );
  makeTableItem( ID );
  OBJ_ID.setField( "OBJ_ID", DATA_CHAR, 20, 0 );
  makeTableItem( OBJ_ID );
  OBJ_TYPE.setField( "OBJ_TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( OBJ_TYPE );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  EXECUTOR.setField( "EXECUTOR", DATA_CHAR, 20, 0 );
  makeTableItem( EXECUTOR );
  EXECUTOR_TYPE.setField( "EXECUTOR_TYPE", DATA_CHAR, 20, 0 );
  makeTableItem( EXECUTOR_TYPE );
  PROC_RESULT.setField( "PROC_RESULT", DATA_CHAR, 256, 0 );
  makeTableItem( PROC_RESULT );
  DESCRIPTION.setField( "DESCRIPTION", DATA_CHAR, 1024, 0 );
  makeTableItem( DESCRIPTION );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
}

CTable_PPM_PROC_RECORD_HIS::~CTable_PPM_PROC_RECORD_HIS( )
{
    close();
}

